package com.ruoyi.parkingcar.mapper;

import java.util.List;
import com.ruoyi.parkingcar.domain.ParkRules;
import org.apache.commons.codec.language.bm.Rule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.tomcat.util.digester.Rules;

/**
 * 收费规则Mapper接口
 * 
 * @author 饼干
 * @date 2025-02-08
 */
@Mapper
public interface ParkRulesMapper 
{
    /**
     * 查询收费规则
     * 
     * @param rulesId 收费规则主键
     * @return 收费规则
     */
    public ParkRules selectParkRulesByRulesId(Long rulesId);

    /**
     * 查询收费规则列表
     * 
     * @param parkRules 收费规则
     * @return 收费规则集合
     */
    public List<ParkRules> selectParkRulesList(ParkRules parkRules);

    /**
     * 新增收费规则
     * 
     * @param parkRules 收费规则
     * @return 结果
     */
    public int insertParkRules(ParkRules parkRules);

    /**
     * 修改收费规则
     * 
     * @param parkRules 收费规则
     * @return 结果
     */
    public int updateParkRules(ParkRules parkRules);

    /**
     * 删除收费规则
     * 
     * @param rulesId 收费规则主键
     * @return 结果
     */
    public int deleteParkRulesByRulesId(Long rulesId);

    /**
     * 批量删除收费规则
     * 
     * @param rulesIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteParkRulesByRulesIds(Long[] rulesIds);

    public ParkRules selectRules();

    public ParkRules selectByOrder();


}
